// 服务项目的api

import { httpDelete, httpGet, httpPost, httpPut } from "../utils/http"

// 查询服务项目
export const searchServiceItemApi = (data) => {
  return httpPost('/serviceItems/search', data)
}
// 新增服务项目
export const addServiceItemApi = (data) => {
  return httpPost('/serviceItems/add', data)
}
// 修改服务项目
export const updateServiceItemApi = (data) => {
  return httpPut('/serviceItems/update', data)
}
// 删除服务项目
export const deleteServiceItemApi = (data) => {
  return httpDelete('/serviceItems/remove', data)
}
// 获取一个服务项目详情 
export const detailServiceItemApi = (data) => {
  return httpGet('/serviceItems/detail', data)
}
// 按分组查询所有服务包
export const searchTypeDataApi = (data) => {
  return httpPost('/servicePacks/getAllByType', data)
}
// 查询服务包下的服务项目
export const searchItemByPackApi = (data) => {
  return httpGet('/serviceItems/getByServicePack', data)
}